package org.dawning.fantasy.core.common;

/**
 * 系统常量
 * Created by dsp on 2016/9/21.
 */
public interface Constants {

    /**
     * 正常
     */
    int RESPONSE_CODE_200 = 200;
    /**
     * 参数错误
     */
    int RESPONSE_CODE_400 = 400;

    int RESPONSE_CODE_404 = 404;

    int RESPONSE_CODE_405 = 405;

    int RESPONSE_CODE_401 = 401;

    int RESPONSE_CODE_403 = 403;
    /**
     * 服务器未知错误
     */
    int RESPONSE_CODE_500 = 500;


    String RESPONSE_MESSAGE_200 = "success";

    String RESPONSE_MESSAGE_400 = "parameter error";

    String RESPONSE_MESSAGE_404 = "resource not found";

    String RESPONSE_MESSAGE_405 = "No resource method found for POST";

    String RESPONSE_MESSAGE_401 = "params error";

    String RESPONSE_MESSAGE_500 = "server error";
    // end res

    String RESULT_JSON_DATA_OBJECT = "object";        //表示data返回单个对象
    String RESULT_JSON_DATA_COLLECTION = "collection";    //表示data返回集合对象


}
